const close = () => {
    window.ipcRenderer.send('close');
}
const expand = () => {
    window.ipcRenderer.send('expand');
}
const setStore = (key: string, obj: any) => {
    window.ipcRenderer.send('setStore', key, obj);
}
const getStore = (key: string) => {
    return window.ipcRenderer.invoke('getStore', key);
}
const newPage = (options: any) => {
    window.ipcRenderer.send('page', options);
}
const openDialog = (properties: any) => {
    return window.ipcRenderer.invoke("openDialog", properties)
}
const openPath = (filename: string) => {
    window.ipcRenderer.send('openPath', filename);
}
const checkUpdate = () => {
    return window.ipcRenderer.invoke('checkUpdate');
}
const download = (value: string) => {
    window.ipcRenderer.send('download', value);
}
const updater = (value: string) => {
    window.ipcRenderer.send('updater', value);
}
export {
    close,
    expand,
    setStore,
    getStore,
    newPage,
    openDialog,
    openPath,
    checkUpdate,
    download,
    updater,
}